/*
 * Objekt, um die User der Webapplikation abzubilden
 * Klasse ist ein reines POJO - besteht also nur aus Konstruktoren, Settern und Gettern der Attribute
 */

package com.objects;

import java.io.Serializable;

/**
 *
 * @author admin
 */
public class user implements Serializable{

        //Benutzername des Users
        private String Username;
        //Email des Users
        private String Email;
        //Passwort des Users
        private String Password;
        //eindeutige ID des Benutzers (aus DB)
        private int Userid;



        public user(String username,String email, String password, int userid)
        {
            this.setUsername(username);
            this.setEmail(email);
            this.setPassword(password);
            this.setUserid(userid);
        }

        public user(String username,String email, String password)
        {
            this.setUsername(username);
            this.setEmail(email);
            this.setPassword(password);

        }

    public user() {
        
    }

    /**
     * @return the Username
     */
    public String getUsername() {
        return Username;
    }

    /**
     * @param Username the Username to set
     */
    public void setUsername(String Username) {
        this.Username = Username;
    }

    /**
     * @return the Email
     */
    public String getEmail() {
        return Email;
    }

    /**
     * @param Email the Email to set
     */
    public void setEmail(String Email) {
        this.Email = Email;
    }

    /**
     * @return the Password
     */
    public String getPassword() {
        return Password;
    }

    /**
     * @param Password the Password to set
     */
    public void setPassword(String Password) {
        this.Password = Password;
    }

    /**
     * @return the Userid
     */
    public int getUserid() {
        return Userid;
    }

    /**
     * @param Userid the Userid to set
     */
    public void setUserid(int Userid) {
        this.Userid = Userid;
    }
}
